package com.robotcms.device.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 产线表
 * </p>
 *
 * @author FuHouQi
 * @since 2018-09-09
 */
@Data
@NoArgsConstructor
@ToString
@TableName("product_line")
public class ProductLine extends Model<ProductLine> {

    private static final long serialVersionUID = 1L;

    /**
     * 产线id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 所属厂房id
     */
	@TableField("workshop_id")
	private Integer workshopId;
    /**
     * 产线名称
     */
	private String name;
    /**
     * 产线位置
     */
	private String location;
    /**
     * 产线类型
     */
	private Integer type;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}
